package com.qiaofang.applet.service.property.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qiaofang.applet.common.base.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.List;

/**
 * Created by IDEA.
 *
 * @auther Zym.
 * @company qiaofang
 * @date 2020/10/13 16:21
 */
@Data
@Document(collection = "property_estate_photo")
@ApiModel("楼盘图片")
@NoArgsConstructor
public class EstatePhoto extends BaseDomain {

    @ApiModelProperty("楼盘唯一UUID")
    private String estateUniqueUuid;

    @ApiModelProperty("楼盘UUID")
    private String estateUuid;

    @ApiModelProperty("图片Uuid")
    private String photoUuid;

    @ApiModelProperty("图片链接地址")
    private String photoURL;

    @ApiModelProperty("图片类型 waijing 外景  fangxing 房型  shinei 室内  other 其他")
    private String categoryName;

    @ApiModelProperty("图片名称")
    private String photoName;

    @ApiModelProperty("室")
    private Integer countF;

    @ApiModelProperty("厅")
    private Integer countT;

    @ApiModelProperty("卫")
    private Integer countW;

    @ApiModelProperty("面积/平米")
    private Double fangSquare;

    @ApiModelProperty("删除标识")
    private Boolean deleted;

    @ApiModelProperty("最后解析日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date lastSyncDate;
}
